// src/router/request.js
import Vue from 'vue';
import VueRouter from 'vue-router';

import Home from '@/views/Home.vue';
import About from '@/views/About.vue';
import Wechat from '@/views/Wechat.vue';
import Enwechat from '@/views/Enwechat.vue';


Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      title: '首页',
      keywords: '这是首页关键字',
      description: '这是首页描述',

    },
  },
  {
    path: '/about',
    name: 'About',
    component: About,
  },
  {
    path: '/wechat',
    name: 'wechat',
    component: Wechat,
  },{
    path: '/enwechat',
    name: 'enwechat',
    component: Enwechat,
  },
];

const router = new VueRouter({
  mode: 'history', // 使用 HTML5 历史模式（需要服务器配置）
  base: process.env.BASE_URL,
  routes,
});

export default router;
